<?php
class Page extends Node_content {
    //private $node_type = 'article';
    
    public function init() {
        $this->set_node_type('page');
    }
    
    
    public function edit_content($node_id) {
        $data = $_POST;
        return $this->model('page')->edit_content($node_id, $data);
    }
    
    public function get_content($node_id) {
        return $this->model('page')->get_content($node_id);
    }
    
    public function remove_content($node_id){
        return $this->model('page')->remove_content($node_id);
    }
    
    public function block_display_content($node_id) {
        $content = $this->get_content($node_id);
        $template = $content['template'];
        
        return $this->view('page/' . $template, $content);
    }
}
?>